home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / mus / misc / maplay1_2.lha / maplay / configuration.sh < prev    next >
Text File  |  1994-06-23  |  3KB  |  99 lines

  1.  
  2. #
  3. #  @(#) configuration.sh 1.9, last edit: 6/17/94 15:41:41
  4. #  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  5. #  @(#) Berlin University of Technology
  6. #
  7. #  This program is free software; you can redistribute it and/or modify
  8. #  it under the terms of the GNU General Public License as published by
  9. #  the Free Software Foundation; either version 2 of the License, or
  10. #  (at your option) any later version.
  11. #
  12. #  This program is distributed in the hope that it will be useful,
  13. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #  GNU General Public License for more details.
  16. #
  17. #  You should have received a copy of the GNU General Public License
  18. #  along with this program; if not, write to the Free Software
  19. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. #
  21.  
  22. #
  23. #  Changes from 1.1 to 1.2:
  24. #    - makedepend usage removed, so INCLUDEDIRS is empty now
  25. #    - Linux part added by Louis P. Kruger (lpkruger@phoenix.princeton.edu)
  26. #    - option -Wall removed
  27. #
  28.  
  29. #
  30. #  Remarks:
  31. #    - Please execute "make clean" after changing settings, then "make".
  32. #    - If you are using a SPARC that does NOT have a dbri device,
  33. #      but a 8 kHz u-law device (amd), e.g. SPARC 1/1+/2/IPC/IPX/...,
  34. #      add "-DULAW" to COMPILERFLAGS.
  35. #      Don't use "-DULAW" for SPARC 10 machines, because these machines
  36. #      can produce very fine CD-quality sound with their dbri device
  37. #    - INCLUDEDIRS is only needed, if your C++ compiler does not know
  38. #      where to find his own include files or if you want to use
  39. #      makedepend. In this case, set INCLUDEDIRS to '-Iincludedir' 
  40. #    - If you are using Linux, you may look for compiler and processor
  41. #      specific optimization options which can be included in COMPILERFLAGS
  42. #
  43.  
  44. ###*** Please modify the entries for your machine: ***###
  45. case `uname -sr` in
  46.   IRIX\ 4.0.*)
  47.      COMPILER=g++
  48.      COMPILERFLAGS='-O2 -DIRIX -DIndigo'
  49.      INCLUDEDIRS=
  50.      LIBRARIES=-laudio
  51.      AUDIO_INCLUDES='#include <audio.h>' ;;
  52.   SunOS\ 4.1.3)
  53.      COMPILER=g++
  54. # for a SPARC 10:
  55.      COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_3 -DSPARC'
  56. # or for 8 kHz u-law output on an amd device and in stdout mode (SPARC 2/IPX/...):
  57. #    COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_3 -DSPARC -DULAW'
  58.      INCLUDEDIRS=
  59.      LIBRARIES=
  60.      AUDIO_INCLUDES='#include <sun/audioio.h>' ;;
  61.   SunOS\ 4.1.1)
  62.      COMPILER=g++
  63.      COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_1 -DSPARC -DULAW'
  64.      INCLUDEDIRS=
  65.      LIBRARIES=
  66.      AUDIO_INCLUDES='#include <sun/audioio.h>' ;;
  67.   SunOS\ 5.*)
  68.      COMPILER=g++
  69. # or:
  70. #    COMPILER=/usr/lang/SC2.0.1/CC
  71.      COMPILERFLAGS='-O2 -DSolaris -DSPARC'
  72.      INCLUDEDIRS=
  73.      LIBRARIES=
  74.      AUDIO_INCLUDES='#include <sys/audioio.h>' ;;
  75.   Linux*)
  76.      COMPILER=g++
  77.      COMPILERFLAGS='-O2 -m486 -funroll-loops -DLINUX -DDAMN_INTEL_BYTE_ORDER'
  78.      INCLUDEDIRS=
  79.      LIBRARIES= 
  80.      AUDIO_INCLUDES='#include <sys/soundcard.h>' ;;
  81.   ULTRIX\ 4.*)
  82.      COMPILER=g++
  83.      COMPILERFLAGS='-O2 -DULTRIX -DDEC -DDAMN_INTEL_BYTE_ORDER'
  84.      INCLUDEDIRS=
  85.      LIBRARIES=
  86.      AUDIO_INCLUDES= ;;
  87.   *) echo "This programm has not been tested on your type of machine yet!"
  88.      echo "Please modify the file configuration.sh according to your needs!"
  89.      exit
  90. esac
  91.  
  92. export COMPILER COMPILERFLAGS INCLUDEDIRS LIBRARIES
  93.  
  94. if [ ! -f audio_includes.h ]; then
  95.   echo $AUDIO_INCLUDES >audio_includes.h
  96. fi
  97.  
  98. make all
  99.